/**************************************************************************************************
 *                                                                          
 * Copyright (c) 2004 - 2007 Winbond Electronics Corp. All rights reserved.      
 *                                                                         
 * FILENAME
 *     UDA1345TS.h
 *
 * VERSION
 *     1.0
 *
 * DESCRIPTION
 *     This file contains the register map of UDA1345TS audio interface
 *
 * HISTORY
 *     02/09/2004		 Ver 1.0 Created by PC31 SJLu
 *
 * REMARK
 *     None
 *     
 *************************************************************************************************/
#ifndef _UDA1345TS_H_
#define _UDA1345TS_H_

/* bit definition of L3DATA register */
#define EX_256FS 		0x20		/*-- system clock --*/
#define EX_384FS 		0x10		
#define EX_IIS			0x00		/*-- data input format  --*/
#define EX_MSB			0x08
#define EX_1345ADDR 	0x14		//The address of the UDA1345TS
#define EX_STATUS		0x02		//data transfer type (STATUS)
#define EX_DATA			0x00		//data transfer type (DATA)
#define EX_ADC_On		0xC2		//turn on the ADC
#define EX_DAC_On		0xC1		//turn on the DAC

/*----- GPIO NUM -----*/
#define L3MODE_GPIO_NUM		(1<<0)
#define L3CLOCK_GPIO_NUM 	(1<<1)
#define L3DATA_GPIO_NUM 	(1<<2)

extern INT  uda1345tsSetPlayVolume(UINT32 uVolume);
extern BOOL uda1345tsPowerOn(WAPI_INOUT apidir ,PWAVEFORMATEX pFormat);
extern INT uda1345tsSetPlayVolume(UINT32);
extern BOOL uda1345SetOutMute(BOOL mute);

#endif	/* _UDA1345TS_H_ */

